import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;


public class adam1Test {

	private Liczba li;
	
	@Before
	public void setUp() throws Exception {
		li = new Liczba(19);
	}

	@After
	public void tearDown() throws Exception {
		li = null;
	}
	
	@Test(expected=LiczbaException.class)
	public void testSetWrongValue() throws Exception {
		li.getNumberWithBase(-11);
	}
	
	@Test
	public void testInit() throws Exception {
		assertNotNull(li);
	}
	
	public void testGetCorrectRadix() throws Exception {
		assertEquals(li.getNumberWithBase(10), 16);
		assertEquals(li.getNumberWithBase(10), "16");
		assertEquals(li.getNumberWithBase(16), "10");
		assertEquals(li.getNumberWithBase(2), "10000");
	}
}
